package Testking14;

import java.util.PriorityQueue;
import java.util.Queue;

public class PQ {

	public static void main(String[] args) {
		Queue<String> pq = new PriorityQueue<String>();
		pq.add("carrot");
		pq.add("apple");
		pq.add("banana");
		System.out.println(pq.poll() + ":" + pq.peek());
	}
}
